import React, { Component } from 'react'
import TodoList from '../../views/TodoList'
import AxiosTest from '../../views/AxiosTest'
import HookTest from '../../views/Hook'
import StateTest from '../../views/StateTest'

import { Redirect, Route } from 'react-router-dom'
export default class AllCate extends Component {
  render() {
    return (
      <div className="allCateCln">
        {/* 注册路由 */}
        <Route path='/todoList' component={TodoList} />
        <Route path='/axiosTest' component={AxiosTest} />
        <Route path='/hook' component={HookTest} />
        <Route path='/stateTest' component={StateTest} />
        {/* 刷新默认路径 */}
        <Redirect to="/todoList" />
      </div>
    )
  }
}
